<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>springmvc测试</title>
</head>
<body>
<h1><a href="javascript:login()">login</a></h1>
<h1><a href="javascript:finds()">finds</a></h1>
<h1><a href="javascript:find1()">find1</a></h1>
<h1><a href="javascript:find2()">find2</a></h1>
<script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
<script type="text/javascript">
function login(){
    $.post("user/login",
        {usid:1001,uname:"张三",tel:"12345678"},rt=>{
        console.log(rt);
    },"json");
}

function finds(){
    $.post("user/find1",
        {usid:1001,uname:"张三",age:18,tel:"12345678"},rt=>{
            console.log(rt);
        },"json");
}

function find1(){
    $.post("user/find1",
        {usid:1001,uname:"张三",age:18,tel:"12345678"},rt=>{
            console.log(rt);
        },"json");
}

function find2(){
    $.post("user/find2",
        {usid:1001,uname:"张三",age:18,tel:"12345678"},rt=>{
            console.log(rt);
        },"json");
}

</script>
</body>
</html>